package com.yutel.pinyin;

import java.util.Vector;

public class Test {

	public static void main(String[] args) {
		// testChi2Letter();
		System.out.println(testSearch("ad23 44fd8ADfD"));
	}

	public static boolean testSearch(String name) {
		String test = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
		for (char i : name.toCharArray()) {
			if (test.indexOf(i) < 0) {
				return false;
			}
		}
		return true;
	}

	public static void testChi2Letter() {
		ChiToLetter trans = new ChiToLetter();
		Vector<String> name = trans.GetLetter("王小二");
		System.out.println(name);
		Vector<String> ans = trans.Expand("王小二");
		System.out.println(ans);
	}

}
